package com.cmc.cloud.cmclink.doc.api.document;

import com.cmc.cloud.cmclink.doc.api.document.rep.VesselOffHireMaintenanceRespDto;
import com.cmc.cloud.cmclink.doc.api.document.req.VesselOffHireMaintenanceReqDto;
import com.cmc.cloud.cmclink.doc.constant.DocApiConstants;
import com.cmes.framework.common.pojo.CommonResult;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

/**
 * 整船禁接查询
 *
 * @author lzp
 */
@FeignClient(name = DocApiConstants.NAME)
@Tag(name = "RPC 服务 - 特种货整船禁接查询 ")
public interface VesselOffHireMaintenanceApi {

    String PREFIX = DocApiConstants.PREFIX + "/vesselOffHireMaintenance";

    /**
     * RPC 服务 - 特种货整船禁接查询
     *
     * @param vesselOffHireMaintenanceReqDto
     * @return
     */
    @PostMapping(PREFIX + "/query")
    @Operation(summary = "特种货整船禁接查询")
    CommonResult<List<VesselOffHireMaintenanceRespDto>> queryVesselOffHireMaintenance(@Valid @RequestBody VesselOffHireMaintenanceReqDto vesselOffHireMaintenanceReqDto);
}
